using DG.Tweening;using DG.Tweening.Core;using UnityEngine;using UnityEngine.UI;namespace WorkFlow.TweenGo{    [RequireComponent(typeof(Image))]    public class ImageFrameTween : TweenGoBase<Image, int>    {        [SerializeField] private Sprite[] frame;        protected override Tweener CreateTween(DOGetter<int> startValueGetter, DOSetter<int> setter, int endValue, float duration)        {            return DOTween.To(startValueGetter, setter, endValue, duration);        }        protected override void SetValue(int value)        {            Target.sprite = frame[value];            Target.SetNativeSize();        }    }}